
{// 引入标签库 }
<tagLib name="html" />
{// 加载头部公共文件 }
<include file="Public:headerNew" />

<load href="__PUBLIC__/Js/jqueryUI/jquery-ui-1.8.16.custom.min.js" />
<load href="__PUBLIC__/Css/jqueryUI/jquery-ui-1.8.21.custom.css" />
<!-- 菜单区域  -->

<!-- 导航条开始  -->
<div class="titleone">

<div class="fLeft titlenav" id="ctl00" style=" cursor:pointer;"><div class="bg-img fLeft" style="margin-top:2px;margin-right:8px;"></div><h1">抄表数据更新</h1></div>
<script type="text/javascript"> 
 $(function(){
	 $("#ctl00").click(function(){
	 if ($("#Slyout").css("display")!="none"){
			  $("#Slyout").slideUp(500);
	  		$("#Slyout_content").css("display","none");
		}


	  $("#Flyout").slideToggle(600);
	  $("#Flyout_content").slideToggle(600);
	  
	 });
	 $("#ct200").click(function(){
	  if ($("#Flyout").css("display")!="none"){
			  $("#Flyout").slideUp(500);
	  		$("#Flyout_content").css("display","none");
		}

	  $("#Slyout").slideToggle(600);
	  $("#Slyout_content").slideToggle(600);
	  
	 });
	 $('#datepicker').datepicker({
					
					changeMonth: true,
        			changeYear: true,
					showMonthAfterYear: true,
             		dateFormat: 'MM yy',
					onSelect: function(dateText, inst) {
						var month = pad(Number($(".ui-datepicker-month :selected").val())+1,2);
                		var year = $(".ui-datepicker-year :selected").val();
						document.getElementById('thedate').value=year+'-'+month+'-'+'01'; 
						}

				});
 });
  function   addmeterItem(e,id)   
  {   
	var e = e || event;
	var   oObj   =   e.srcElement   ||   e.target;  
	  //if(oObj.tagName.toLowerCase()   ==   "td")   
	 // {   
		  	  /*
	  var   oTable   =   oObj.parentNode.parentNode;   
	  for(var   i=1;   i<oTable.rows.length;   i++)   
	  {   
	  oTable.rows[i].className   =   "out";   
	  oTable.rows[i].tag   =   false;   
	  }   */
	var obj= document.getElementById('checkList').getElementsByTagName("input");
	  var   oTr   =   oObj.parentNode; 
	  var row = oObj.parentElement.rowIndex-1;
	  if (oTr.className == 'down')
	  {
		  	oTr.className   =   'out';   
			
		    oTr.tag   =   true;  
	  }else {
			oTr.className   =   'down';   
			
		    oTr.tag   =   true;  
	  }
 	  //}   
	  self.location = URL+"/tranbizinfo/bizid/"+id;
  } 
</script>
<!-- 查询区域 -->
<form method=post id="frmsearch" action="__URL__/index">
<div class="search">

<div class="searchbg fRig" id="searchbg">
<div class="fLeft"><span id="key"><input type="text" title="名称查询" name="name"  id="topsearch" value="请输入商户名或者编码" /></span><div class="imgsub" onclick="$('#frmsearch').submit();"></div></div>
<div id="ct200" class="bg-img Fright" style="margin-top:2px;margin-left:236px;cursor:pointer;"></div>
</div>

</div>
<!-- 小区列表开始 -->
<div id="Flyout" class="hpHdr_Flyout" style="left:0px;height:180px;">
</div>
<div id="Flyout_content" class="hpHdr_Flyout_content" style="left:0px;height:180px;">
<div>
<h1 style="font-size:18px;">选择月份</h1>
<ul class="zonearry" style="width:800px;list-style-type:none;">
<volist name="zones" id="vo">
<li class="zonemini"><a href="{:U('Bizmanage/meterclist?zoneid=')}{$vo.id}">{$vo.name}</a>

</volist>
</ul>
</div>
</div>
<!-- 小区列表结束 -->
<div id="Slyout" class="hpHdr_Flyout" style="left:0px;height:100px;">
</div>
<div id="Slyout_content" class="hpHdr_Flyout_content" style="left:0px;height:100px;">
<div>
<h1 style="font-size:18px;">高级搜索</h1>
<p>
<select name="zlist" style="height:28px; margin-top:2px;">

  <option value="0">选择区域</option>
<volist name="zones" id="vo">
  <option value="{$vo.id}">{$vo.name}</option>
</volist>
</select>&nbsp;&nbsp;月份：
<select name="monData" id="monData">
</select>
电话：<input name="tel" type="text" />&nbsp;&nbsp;联系人：<input name="contact" type="text" /><span class="signup-button">
<a id="link-signup" class="g-button g-button-red" href="javascript:void(0);" onclick="$('#frmsearch').submit();"> 搜索 </a>
</span>
</p>
</div>
</div>
<a href="__URL__"><div class="returnimg"></div></a>
</div> 
</form>
<!--导航条结束 -->
<!-- 主页面开始 -->

<div id="main" class="main full" >
<!-- 主体内容  -->


<h1 class="title"><span class="text">{$zonename}</span></h1><div class="mondis" style="float:right;margin-top:-30px;">{$year}年{$mon}月<input type='hidden' id='year' name='year' value="{$year}" /><input type='hidden' id='mon' name='mon' value="{$mon}" /></div>
<!-- 列表显示区域  -->
<div class="list" >
<table id="checkList" class="list" cellpadding=0 cellspacing=0 ><tr class="row" ><th width="8%" align="left" style="border-left:#3399ff 6px solid;padding-left:4px;"><a href="javascript:sortBy('id','','comlist')" title="按照编号">编号</a></th><th align="left">商户名</th><th align="left">联系人</th><th align="left">总水量</th><th align="left">水费</th><th align="left">总电量</th><th align="left">电费</th><th align="left">污水处理费</th><th align="left">最后月份数据</th><th align="left">状态</th><th align="left">操作</th></tr>
<volist name="list" id="vo">
<tr class="row" onmouseover="over(event)" onmouseout="out(event)" onclick="addmeterItem(event,{$vo.id})" style="cursor:pointer;"><td>{$i}</td><td>{$vo.name}<input type="hidden" name="key"	value="{$vo.id}"></td><td>{$vo.contact}</td><td>{$vo.awnum}</td><td>{$vo.wnum1}</td><td>{$vo.aenum}</td><td>{$vo.enum1}</td><td>{$vo.wwnum}</td><td>
<php>if(!empty($vo['meterMon'])) echo $vo['meterMon'];</php>

</td><td>{$vo.status|getStatus}</td><td></td></tr>
</volist>
</table>



<div id="dialog" title="选择区域"></div>

<!--  分页显示区域 -->
<div class="page">{$page}</div>
<!-- 列表显示区域结束 -->

</div>
<!-- 主页面结束 -->

